﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="HtmlRepresentation.aspx.cs" Inherits="Wiki.Web.Views.Page.HtmlRepresentation" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="Wiki.Web.Models" %>
<asp:Content ID="HeadingContent" ContentPlaceHolderID="HeadingContentPlaceHolder" runat="server"><%= HttpUtility.HtmlEncode(this.ViewData.Title)%></asp:Content>
<asp:Content ID="MenuContent" ContentPlaceHolderID="MenuContentPlaceHolder" runat="server">
<% if (this.ViewData.IsAvailable) { %>
&nbsp;|&nbsp;<a href="#" rel="nofollow" onclick="displayEdit('/page/<%= this.ViewData.Title%>')">Edit</a>
&nbsp;|&nbsp;<a href="#" rel="nofollow" onclick="deleteResource('/page/<%= this.ViewData.Title%>')">Remove</a>
<% } %>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="BodyContentPlaceHolder" runat="server">
<% if (this.ViewData.IsAvailable) { %>
<%= this.ViewData.BodyAsHtml%>
<% } else { %>
<p>This wiki does not have an article with this exact name.</p>
<ul><li><a href="#" rel="nofollow" onclick="displayEdit('/page/<%= this.ViewData.Title%>')">Start the <em><%= HttpUtility.HtmlEncode(this.ViewData.Title)%></em> article</a></li></ul>
                                                                                                    
                                                                                                    
                                                                                                    
                                                                                                    
<% } %>
</asp:Content>